package com.cwl.base.day01;

import java.util.Scanner;

/**
 * @program: java_base
 * @description: 测试获得键盘输入
 * @author: ChenWenLong
 * @create: 2019-11-05 15:14
 **/
public class TestScanner {

    public static void main(String[] args) {
        Scanner scanner =  new Scanner(System.in);
        System.out.println("请输入名字：");
        String   name =  scanner.nextLine();
        System.out.println("请输入你的爱好：");
        String  favor = scanner.nextLine();
        System.out.println("请输入你的年龄：");
        int   age = scanner.nextInt();

        System.out.println("###############");
        System.out.println(name);
        System.out.println(favor);
        System.out.println("来到地球的天数："+age*365);
        System.out.println("离开地球的天数："+(72-age)*365);

    }
}
